-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(stdlibs/std): re-organize gnoEvent struct #2160
refactor(stdlibs/std): re-organize gnoEvent struct #2160
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2160 +/- ##
==========================================
+ Coverage 54.63% 54.79% +0.15%
==========================================
Files 583 583
Lines 78507 79110 +603
==========================================
+ Hits 42895 43350 +455
- Misses 32399 32487 +88
- Partials 3213 3273 +60
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 💯
Thank you for applying the suggested changes from the original PR 🙏
@r3v4s Can you pull in the latest |
5aecf52
to
2525776
Compare
@zivkovicmilos @thehowl Here is my new suggestion
|
2525776
to
4c4fd24
Compare
Okay, I've had a discussion with Milos with what to do here. Essentially, I don't think there is a compelling case for adding PrevRealm nor PrevFunc. PrevFunc shouldn't be necessary (also I think it's buggy, but anyway); PrevRealm contains information which if it is really useful to the reader of the events, they can just be passed in as attributes. (That's the whole point of attributes). Reading your last comment;
I tend to agree on 2. For 3, I don't think PrevFunc or PrevRealm are useful, so just scrap them.
We can change it to name; but I think Type is fine too. This is how I see this PR right now:
|
gnoEvent
<!-- please provide a detailed description of the changes made in this pull request. --> Closes gnolang#2002 Also related to gnolang#2001 <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
Closes #2002
Also related to #2001
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description